﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Input;

namespace ViewModels.DinosaursParkMes
{
    public class MyConnand : ICommand
    {
        Action execAction;

        public MyConnand(Action execAction)
        {
            this.execAction = execAction;
        }
        public event EventHandler? CanExecuteChanged;
        public bool CanExecute(object? parameter)
        {
            return true;
        }

        public void Execute(object? parameter)
        {
            execAction();
        }
    }
}
